package cn.itcast.rule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import com.netflix.loadbalancer.RetryRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @auther :hyh
 * @desc :
 * @date :2019/5/11
 */
@Configuration
public class MyRule{

    @Bean
    public IRule myIRule() {
        return new RoundRobbinRule_hyh();
    }

}
